
package at.kaok;
import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import at.kaok.betfair.Exchange;

import com.google.appengine.api.blobstore.BlobstoreService;
import com.google.appengine.api.blobstore.BlobstoreServiceFactory;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;

@SuppressWarnings("serial")
public class AnaliseWithMarketIdServlet extends HttpServlet {
	
	 private BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();

	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		resp.setContentType("text/plain");
	}
	
	 public void doPost(HttpServletRequest req, HttpServletResponse resp)
             throws IOException {
		 String marketiD = req.getParameter("marketId");
		 int id = Integer.parseInt(marketiD);
		 String session = (String)req.getSession().getAttribute("bfSession");
		 Exchange.getMarketPrices(session, id);
 }

}
